<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html class="loaded">
<head>
    <meta  charset=UTF-8">

    <title>${novelcontent.novelname }_${novelcontent.chaptername }_校园小说原创网</title>
    

    <link rel="stylesheet" data-ignore="true" href="css/novelchap.css">
    <script type="text/javascript">
        /*
        分类频道
        */
        function classify() {
            document.getElementById('classify').style.display = "block";
        }
        function shouqi() {

            document.getElementById('classify').style.display = "none";
        }
        /*
         手机阅读
         */
        function photoopen() {
            document.getElementById('photo').style.display = "block";
        }
        function photoout() {

            document.getElementById('photo').style.display = "none";
        }
        $(document).ready(
            function () {
                //判断显示器的分辨率
                var winWidth = document.documentElement.clientWidth;
                var winHeight = document.documentElement.clientheight;
                //var main = document.getElementById("main");
                var main1 = $("#main");
                var topic = $("#topic");
                var content = $("#content");
                var footer = $("#footer");
                main1.css("width", (winWidth - 1024) / 2 + 760 + "px");
                topic.css("width", (winWidth - 1024) / 2 + 760 - 22 + "px");
                content.css("width", (winWidth - 1024) / 2 + 760 + "px");
                footer.css("width", (winWidth - 1024) / 2 + 760 + "px");
            }
        );
    </script><!--导航栏下拉列表js-->
    <style>
        html, body {
            margin: 0;
            height: 100%;
        }

        #test {

            width: 100%;
            height: 100%;
            background-color: #000;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 9999;
            -webkit-transition: .5s ease-in-out;
            -moz-transition: .5s ease-in-out;
            opacity: 0.3;
            /*兼容IE8及以下版本浏览器*/
            filter: alpha(opacity=30);
            display: none;
        }

        #log_window {
            width: 405px;
            height: 200px;
            background-color: white;
            border-top-color: red;
            border-top-style: solid;
            margin: auto;
            position: absolute;
            z-index: 99999;
            -webkit-transition: .5s ease-in-out;
            -moz-transition: .5s ease-in-out;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            display: none;
        }

        #buttonriview {
            width:40px;
            height:25px;
            text-align:center;
            background-color:red;
            color:white;

        }

        #cloceimg {
            width: 15px;
            height: 15px;
            margin-left: -10px;
        }
         /*文章评论区样式*/
        #review {
            width: 100%;
            min-height: 200px;
            height: auto;
            margin:auto;
            padding-bottom: 80px;
            border: #ccc solid 1px;
            background-color: #FFF;
            display:none;
            position: absolute;
            z-index: 99998;
        }

        #reviewtopic {
            width: 100%;
            height: 20px;
            line-height: 20px;
            padding: 5px 0px 5px 0px;
            text-align: center;
            background-color:red;
        }

            #reviewtopic span {
                font-size: 18px;
                font-family: "Courier New", Courier, monospace;
                font-weight: bold;
                color:white;
            }

        #review table {
            margin: 5px 0px 10px 0px;
            border-bottom: #CCC dashed 1px;
        }

            #review table tr {
                line-height: 30px;
            }

        #reviewusername {
            font-size: 16px;
            color: #609;
            font-weight: bold;
            text-align: left;
            padding-left: 20px;
        }

        #reviewcontent {
            font-size: 16px;
            color: #666;
            text-align: left;
            padding-left: 20px;
        }

        #reviewtime {
            width: 80px;
            font-size: 12px;
            color: #666;
            text-align: left;
            padding-left: 20px;
        }

        #reviewdelete {
            width: 20%;
            text-align: right;
            padding-right: 20px;
            color: #666;
            font-family: "Courier New", Courier, monospace;
            font-size: 12px;
        }
    </style><!--评论遮罩层css-->
    <script>
    	
        function shield() {
            var doc = document.documentElement;
            relHeight = (doc.clientHeight > doc.scrollHeight) ? doc.clientHeight : doc.scrollHeight;//获取屏幕高度和当前页面高度中的较大值
            document.getElementById('test').style.height = relHeight+'px';//id为bg的div就是我页面中的遮罩层
            
            var s = document.getElementById("test");
            s.style.display = "block";

            var l = document.getElementById("log_window");
            l.style.display = "block";
            
        }

        function cancel_shield() {
            var s = document.getElementById("test");
            s.style.display = "none";

            var l = document.getElementById("log_window");
            l.style.display = "none";
        }
        
        function reviewopen() {
            document.getElementById("review").style.display = "block";
        }
        function reviewout() {
            document.getElementById("review").style.display = "none";
        }
        
    </script><!--评论遮罩层js-->

</head>

<body>
    <div id ="test"></div>
    <div id="log_window">
        <form id="formreview" style="width:100%; height:100%; margin:auto" name="form1" method="post" action="review.do?novelid=${novelcontent.novelid}&chapterid=${novelcontent.chapterid}">
            <table style="width:100%; height:100%">
                <tr>
                    <td>
                        <span style="font-size:18px;">我要评论</span>
                    </td>
                    <td>
                        <a href="javascript:cancel_shield()">
                            <img src="img/关闭.jpg" id="cloceimg" />
                        </a>
                    </td>
                </tr>
                <tr>
                    <td>
                        <textarea cols="52" rows="7" style="margin-left:10px" name="reviewtext"></textarea>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:center">
                    	<c:if test="${loginuser==null}">
                        	<input type="submit" name="button" disabled id="buttonriview" value="提交" />
                    	</c:if>
                    	<c:if test="${loginuser!=null && loginuser.userid!=null}">
                        	<input type="submit" name="button" id="buttonriview" value="提交" />
                    	</c:if>
                    </td>
                </tr>


            </table>
        </form>
    </div><!--评论遮罩层-->
    <div class="wrap">

        <div class="read-header" id="readHeader" style="background-color:#bec8c8" data-l1="40">
            <div class="wrap-center cf">
                <div class="left-nav fl">
                    <div class="logo">
                        <a class="logo-ico" href="javascript:"></a>
                    </div>
                    <ul>
                        <li class="site" data-l2="1">
                            <a class="pin-logo" href="校园原创小说网" target="_blank" data-eid="qd_R01"><span></span></a>

                        </li>
                        <li class="app" data-l2="2" onmouseover="photoopen()" onmouseout="photoout()">
                            <cite>手机阅读</cite>
                            <div class="dropdown scan-app hidden" id="photo" style="background-color:white">
                                <div class="box">
                                    <h3>扫描下载校园小说客户端</h3>
                                    <img src="qd_qrcode.f4f94.png">
                                    <a href="" target="_blank" data-eid="qd_R05"><em class="iconfont"></em>App store 下载</a>
                                    <a href="" target="_blank" data-eid="qd_R06"><em class="iconfont"></em>Android 下载</a>
                                </div>
                            </div>
                        </li>
                        <li id="j_nearRead" data-l2="3" name="pilot">
                            <cite>最近阅读</cite>
                        </li>
                        <li class="quick-nav" data-l2="4" onmouseover="classify()" onmouseout="shouqi()" name="pilot">
                            <cite><i class="iconfont"><img src="img/列表.jpg" style="width:15px;height:15px" /></i>快速导航</cite>
                            <div class="dropdown type-list" id="classify" style="background-color:white">
                                <div class="type-box">
                                    <h3>分类频道</h3>
                                    <a href="" data-eid="qd_R13" target="_blank">玄幻</a>
                                    <a href="" data-eid="qd_R14" target="_blank">奇幻</a>
                                    <a href="" data-eid="qd_R15" target="_blank">武侠</a>
                                    <a href="" data-eid="qd_R16" target="_blank">仙侠</a>
                                    <a href="" data-eid="qd_R17" target="_blank">都市</a>
                                    <a href="" data-eid="qd_R18" target="_blank">现实</a>
                                    <a href="" data-eid="qd_R20" target="_blank">历史</a>
                                    <a href="" data-eid="qd_R19" target="_blank">军事</a>
                                    <a href="" data-eid="qd_R21" target="_blank">游戏</a>
                                    <a href="" data-eid="qd_R22" target="_blank">体育</a>
                                    <a href="" data-eid="qd_R23" target="_blank">科幻</a>
                                    <a href="" data-eid="qd_R24" target="_blank">悬疑灵异</a>
                                    <a href="" class="ecy" data-eid="qd_R26" target="_blank">二次元</a>
                                    <a href="" data-eid="qd_R27" target="_blank">完本</a>
                                    <a href="" data-eid="qd_R25" target="_blank">女生</a>
                                    <a href="" data-eid="qd_R28" target="_blank">三江</a>
                                </div>
                                <div class="type-box">
                                    <h3>其它</h3>
                                    <a href="" data-eid="qd_R29" target="_blank">投稿</a>
                                    <a href="" data-eid="qd_R30" target="_blank">签约</a>
                                    <a href="" data-eid="qd_R31" target="_blank">福利</a>
                                </div>
                            </div>
                        </li>
                    </ul>
                </div>
                <div class="read-login fr">
                    <ul>
                        <li id="min-search" data-l2="5">
                            <form action="" method="get" target="_blank">
                                <input class="submit-input" type="submit" id="searchSubmit" data-eid="qd_R32">
                                <input id="pin-input" class="pin-input hide" name="kw" type="text" placeholder="随身带个狩猎空间">
                                <label id="pin-search" for="searchSubmit" data-eid="qd_R32"><em class="iconfont"></em></label>
                            </form>
                        </li>
                        <li class="line"></li>
                        
                        <c:if test="${loginuser==null}">
                        	<li class="sign-out" data-l2="6">
	                            <a id="pin-login" href="login.jsp" data-eid="qd_R33">登录</a>
	                            <a class="reg" href="addnormaluser.jsp" target="_blank" data-eid="qd_R34">注册</a>
                            </li>
                        </c:if>
                        <c:if test="${loginuser!=null}"> 
                            <li class="sign-out" data-l2="6">
                            	<a id="pin-login" href="#" data-eid="qd_R33">${loginuser.userid}</a>
                            	<a id="pin-login" href="loginout.do" data-eid="qd_R33">退出登录</a>
                            </li>
                        </c:if>
                        <li class="sign-in hidden" data-l2="6" name="pilot">
                            <a href="" target="_blank" data-eid="qd_R36"><cite><i id="nav-user-name"></i></cite><span></span></a>
                            <div class="dropdown">
                                <a href="" target="_blank" data-eid="qd_R37">账户设置</a>
                                <a href="" target="_blank" data-eid="qd_R38">账务中心</a>
                                <a href="" target="_blank" data-eid="qd_R39">作家专区</a>
                                <a id="exit" href="javascript:" data-eid="qd_R40">退出</a>
                            </div>
                        </li>
                        <li data-l2="6">
                            <a href="" target="_blank" data-eid="qd_R35">充值</a>
                        </li>
                        <li data-l2="6">
                        <c:if test="${loginuser==null}">
                            <a href="login.jsp" target="_blank" data-eid="qd_R35">
                                <img src="img/books.ico" style="width:15px;height:15px" /><em>添加书架</em>
                            </a>
                        </c:if>
                        <c:if test="${loginuser!=null}">
                        	<a href="mybooksroom.do?novelid=${novelcontent.novelid}" target="_blank" data-eid="qd_R35">
                                <img src="img/books.ico" style="width:15px;height:15px" /><em>添加书架</em>
                            </a>
                        </c:if>
                        </li>
                    </ul>
                </div>
            </div>
        </div>

        <div id="j_bodyRecWrap" class="hidden" style="display: block;">
            <div class="body-rec-wrap" style="background: url() center 0 no-repeat;" data-l1="3">
                <!--设置页面背景图片-->

            </div>
        </div>
        <div class="crumbs-nav" data-l1="1">

            <a href="" target="_blank" data-eid="qd_G01">首页</a><em class="iconfont">></em>
            <a href="" target="_blank" data-chanid="21" id="j_chanId" data-eid="qd_G02">玄幻</a><em class="iconfont">></em>
            <a href="" target="_blank">${novelcontent.typename }</a><em class="iconfont">></em>

            <a class="act" href="" target="_blank" id="bookImg" data-bid="1013406185">${novelcontent.novelname }</a>
        </div>

        <div class="read-main-wrap font-family01" style="font-size:18px;" id="j_readMainWrap">
            <div id="j_chapterBox" data-l1="3">


                <div class="text-wrap" id="chapter-437502703" style=" background-color:white">
                    <div class="main-text-wrap">
                        <div class="text-head">
                            <div class="guide-box">
                                <cite></cite>
                                <p>点击书签后，可收藏每个章节的书签，“阅读进度”可以在个人中心书架里查看</p>
                            </div>
                            <a class="book-mark" href="javascript:" title="书签" data-cid="437502703" data-bid="1013406185" data-auid="4921" data-eid="qd_R104"></a>
                            <h3 class="j_chapterName">${novelcontent.chaptername }</h3>
                            <div class="text-info cf">
                                <div class="info fl">
                                    <a href="" target="_blank" data-bid="1013406185" data-auid="4921" data-eid="qd_R102">
                                        <em class="iconfont">
                                            <img src="img/书名.jpg" style="width:15px;height:15px" />
                                        </em>${novelcontent.novelname }
                                    </a>
                                    <a href="" target="_blank" data-bid="1013406185" data-auid="4921" data-eid="qd_R103">
                                        <em class="iconfont">
                                            <img src="img/作家.jpg" style="width:15px;height:15px" />
                                        </em>${novelcontent.nickname }
                                    </a>
                                    <i>
                                        <em class="iconfont">
                                            <img src="img/时间.jpg" style="width:15px;height:15px" />
                                        </em>
                                        <span class="j_updateTime">${novelcontent.createtime }</span>
                                    </i>
                                    <img src="img/评论.jpg" id="plimg" style="width:15px;height:15px;margin-right:20px" 
                                     onmouseover="reviewopen()" onmouseout="reviewout()"/>
									
									<!--文章评论区-->
								    <div id="review">
								        <div id="reviewtopic">
								            <span>评论</span>
								        </div>
										<c:forEach items="${reviewchap }" var="reviewchap">
									        <table style="width:100%">
									            <tr>
									                <td colspan="2" id="reviewusername">
									                    
									                    <span style="margin-left:20px">${reviewchap.nickname }</span>
									                </td>
									            </tr>
									            <tr>
									                <td colspan="2" id="reviewcontent">${reviewchap.reviewcontent }</td>
									            </tr>
									            <tr>
									                <td id="reviewtime">${reviewchap.createtime }</td>
									                <td id="reviewdelete">${reviewchap.ipaddr }</td>
									            </tr>
									        </table>
										</c:forEach>
								        
								    </div>
                                </div>
                                <div>
                                    <a href="javascript:shield()">我要评论</a>
                                </div>
                            </div>
                            <div class="read-content j_readContent">
                                ${novelcontent.textcontent }
                            </div><!--小说章节内容-->
                        </div>
                    </div>

                </div><!--小说内容-->

                <div class="chapter-control dib-wrap" style=" background-color:white">

                    <a id="j_chapterPrev" data-eid="qd_R107" href="contentlast.do?chapterid=${fristcontent.chapterid }">上一章</a><span>|</span>
                    <a href="novel.do?novelid=${novelcontent.novelid }" target="_blank" data-eid="qd_R108">目录</a><span>|</span>
                    <a id="j_chapterNext" href="contentlast.do?chapterid=${lastcontent.chapterid }" data-eid="qd_R109">下一章</a>
                </div>
                <div class="la-ball-pulse j_chapterLoad hidden">
                    <span></span>
                    <span></span>
                    <span></span>
                </div>
            </div>
        </div>

        <div id="userLevel" class="hidden"></div>
        <div id="authorId" data-authorid="4921" class="hidden"></div>


    </div>


</body>



</html>
